public class DiGuiDemo4 {
public static double centigrade(double c){
//摄氏度和华氏度的转换
double f=0;
    if ((c<=10)&&(c>=250)){
        c=(5.0 / 9.0) * (f - 32);

    }
    return f=(9.0 / 5.0) * c + 32;


}

    public static void main(String[] args) {
        double c,f;
        double translate;
        translate=centigrade(300);
        System.out.println(translate);
    }
}
